import axios from "../index.js";
// 应急预案首页
// 知识库浏览排名
export const getViewApi = (data) => {
  return axios.request({
    url: "/plan_training/repository/ranking",
    method: "post",
    data: data
  });
};
// 应急预案浏览排名
export const getViewsApi = (data) => {
  return axios.request({
    url: "/plan_training/manage/ranking",
    method: "post",
    data: data
  });
};
// 预案更新提醒
export const getUpdateListApi = (data) => {
  return axios.request({
    url: "/plan_training/manage/updateRemind",
    method: "post",
    data: data
  });
};
// 知识库文件总数和下载数
export const getFileSumApi = (data) => {
  return axios.request({
    url: "/plan_training/repository/fileSum",
    method: "post",
    data: data
  });
};
// 本月知识库上传数
export const getUploadApi = (data) => {
  return axios.request({
    url: "/plan_training/repository/uploading",
    method: "get",
    data: data
  });
};
// 预案总数和超期占比
export const fileSumApi = (data) => {
  return axios.request({
    url: "/plan_training/manage/fileSum",
    method: "post",
    data: data
  });
};
// 本月应急预案上传数
export const uploadApi = (data) => {
  return axios.request({
    url: "/plan_training/manage/uploading",
    method: "get",
    data: data
  });
};
// 知识库文件类型统计
export const fileStatisticsApi = (data) => {
  return axios.request({
    url: "/plan_training/repository/fileStatistic",
    method: "get",
    data: data
  });
};
// 预案更新类型统计
export const typeAnalysisApi = (data) => {
  return axios.request({
    url: "/plan_training/manage/typeAnalysis",
    method: "get",
    data: data
  });
};
